package edu.upc.saleproducts;

/**
 *
 * @author Pavel
 */
public class Product
{

    private String name;
    private float unitPrice;
    private int amount;

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public float getSalePrice()
    {
        return unitPrice;
    }

    public void setSalePrice(float unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public int getAmount()
    {
        return amount;
    }

    public void setAmount(int amount)
    {
        this.amount = amount;
    }

    public float totalSalePrice()
    {
        return this.unitPrice * this.amount;
    }
}
